package com.tous.tool.service;

import com.tous.modules.bean.UdpMessage;
import com.tous.modules.service.IUdpBusinessService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author mengwei
 * @description UdpBusinessServiceImpl
 * @createDate 2025/7/21 11:57
 */
@Service
@Slf4j
public class UdpBusinessServiceImpl implements IUdpBusinessService {

    /**
     * 处理UDP消息
     *
     * @param message 接收到的UDP消息
     * @return 处理结果
     */
    @Override
    public UdpMessage handler(UdpMessage message) {
        log.info("接收到UDP消息: {}", message);
        return new UdpMessage(11L, "处理成功", 0, System.currentTimeMillis());
    }
}
